<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/brokeNews',
    'namespace' => 'Beerus\\Modules\\BrokeNews\\Controllers',
    'middleware' => ['web', 'admin'],
], function (Router $router) {
    $router->get('/', function () {
        return redirect('/admin/brokeNews/index');
    });
    $router->get('/index', 'IndexController@index'); // 修改wiki收藏数
    $router->post('/save', 'IndexController@save'); // 保存wiki收藏数
    $router->get('/list', 'IndexController@list'); // wiki列表
    $router->put('/list/{id}', 'IndexController@modifyFav')->where("id","[0-9]+"); // wiki列表
});